<template>
    <div class="home-recommend">
        <div class="recom-item" v-for="(item,key) in recommends" :key="key">
            <a :href="item.link">
                <img :src="item.image" alt="">
                <div>{{item.title}}</div>
            </a>
        </div>
    </div>
</template>

<script>
    export default {
        props:{
            recommends:{
                type:Array,
                default(){
                    return []
                }
            }
        }
    }
</script>

<style scoped>
    .home-recommend{
        display: flex;
        max-width: 100vw;
        text-align: center;
        font-size: 12px;
        padding: 10px 0px;
        border-bottom: 8px solid rgba(100, 100, 100, .1)
    }
    .recom-item{
        flex: 1;
    }
    .recom-item img{
        width: 60px;
    }
</style>